using UnityEngine;
using System.Collections;
[System.Serializable]
public class AchievementItem {
	
    // Deixar cinza caso não esteja comcluido

	public string name;
	public string description;
	public int count;
	public int limit;
	public string titleId;
	public string subtitleId;
	public bool booleana;
	
	public bool completed = false;

	public void SetCompleted()
	{
		this.completed = true;
        AchieveStorage.getInstance.Save(this);
	}
    public void Add() 
    {
        this.count++;
        AchieveStorage.getInstance.Save(this);
    }
	
	public bool Teste()
	{
		if(!this.booleana){
		if(this.count >= limit)
		{
			return true;
		}
		}else
		{
			if(this.count >= 1)
			{
				return true;
			}
		}

        return false;
	}

    
}
